package examples.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;

@Entity
public class Seat {
    @Id
    private int id;
    private String row;
    private String number;
    
    @OneToOne
    Ticket ticket;

    @ManyToOne
    Performance performance;

    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getName() {
        return row;
    }
    
    public void setName(String name) {
        this.row = name;
    }

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public static Seat findFirstAvailableSeat(Performance performance) {
		return null;
	}
}
